package com.open.capacity.model.system;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;

@Data
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 749360940290141180L;

    private String id;
    private String parentId;
    private String code;
    private String name;
    private String css;
    private String url;
    private String path;
    private String target;
    private Integer sort;
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss.SSS")
    private Date createTime;
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss.SSS")
    private Date updateTime;
    private Integer isMenu;
    private Integer allowExpand;
    private Integer hidden;
    private Integer status;
    private String description;
    private String category;

    @TableField(exist=false)
    private List<SysMenu> subMenus;

    @TableField(exist=false)
    private Map<String, String> btns;

    @TableField(exist=false)
    private Map<String, String> cols;
}
